package com.moyun.syssecurity.sms.pojo;

import com.moyun.common.validation.SMSCodeGroup;
import com.moyun.common.validation.SMSLoginGroup;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;

/**
 * <h3>moyun-base</h3>
 * <p>短信验证视图层</p>
 *
 * @author : ybx
 * @date : 2021-08-23 10:59:05
 **/
@Data
public class SMSVO implements Serializable {
    @NotEmpty(groups = {SMSCodeGroup.class, SMSLoginGroup.class})
    @ApiModelProperty("手机号")
    private String phone;
    @ApiModelProperty(value = "手机号", hidden = true)
    private String mobile;
    @NotEmpty(groups = {SMSLoginGroup.class})
    @ApiModelProperty("短信验证码")
    private String smsCode;
}
